<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="my" uri="/WEB-INF/my.tld"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>专业信息列表</title>
		<link rel="stylesheet" type="text/css" href="../../css/counter.css">
		<link rel="stylesheet" type="text/css" href="../../css/css.css">
		<script type="text/javascript" src="../../javascript/common.js"></script>
		<script src="<%=basePath%>/javascript/jquery.js"></script>
		<script type="text/javascript">
		function toReviewPage()
		{
		var str=0;
		str=$("#allowReviewFlagId").val();
		 if(str>0)
		 {
		  alert("还有专家未对所有项目进行评分，不能进行审核！");
		  return false;
		 }
		 else{
		  return true;
		 }
		}
			function submitForm(){
				alert("审核已完毕 请选择其他项目");
			}
		
			function checkCount(){
				alert("此专业组其它项目评分尚未结束，不能进行审核");
			}
			
			function shenhe(){
				alert('未分配专家不能进行审核!');
			}
			
			function findXmByXkId(){
				window.location="listAllZhuanye.action";
			}
			
		</script>
	</head>
	<body>
		<s:set name="allowReviewFlag" value="0" scope="page"></s:set>
		<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center"
			border="0">
			<TBODY>
				<TR>
					<TD>
					<td align="right">
						${pageStr}
					</td>
					<IMG src="../../images/manage/arron1.gif">
					<FONT class="font_lv">${xmTitle } 应评专家数${count1}人</FONT>
					<input type="button" class="btn1" value="返回"
						onclick="return findXmByXkId()">
					<td>
					</td>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing="1" cellPadding="1" width="100%" align="center"
			border="0">
			<tr>
				<td>
				</td>
				<td align="right">

				</td>
			</tr>
		</table>
		<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">
			<TR>
				<TD class=line>
					<table height="100%" cellSpacing=1 cellPadding=2 width="100%"
						bgColor=#CCCCCC border=0>
						<tr>
							<td align="center" width="5%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								序号
							</td>
							<td align="center" width="25%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								项目名称
							</td>
							<td align="center" width="15%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								专利人
							</td>
							<td align="center" width="13%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								平均分（计算权重）
							</td>
							<td align="center" width="10%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								总分(计算权重)
							</td>
							<td align="center" width="10%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								排序平均分
							</td>
							<td align="center" width="12%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								已评审专家个数
							</td>
							<td align="center" width="10%"
								background="../../images/manage/title_bg.jpg"
								class="font_12_B_w">
								审核状态
							</td>
							<s:if test="${my:checkYear()}">
								<td align="center" width="15%"
									background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									操作
								</td>
							</s:if>

						</tr>

						<s:iterator value="basicInfoList" status="sm">
							<form action="chuShenXiangMuShenHe.action" method="post"
								onsubmit="return toReviewPage()">
							<tr bgColor=#FFFFFF height="25">
								<input type="hidden" value="${zlid}" name="zlid" />
								<input type="hidden" value="${xkId}" name="xkId" />

								<td align="center">
									<s:property value="${sm.count+pageRow}" />
								</td>
								<td align="center">

									<a href="findZhuanJiaByZjId.action?zlid=${zlid}"><s:property
											value="name" /> </a>
									<input type="hidden" value="${name}" name="name">
									<input type="hidden" value="${count}" name="count">
								</td>
								<td align="center">
									<s:property value="zlqr" />
									<input type="hidden" value="${zlqr}" name="zlqr">
								</td>
								<td align="center">
									<s:property value="avgFenshu" />
									<input type="hidden" value="${avgFenshu}" name="avgFenshu">
								</td>
								<td align="center">
									<s:property value="sumFenshu" />
									<input type="hidden" value="${sumFenshu}" name="sumFenshu">
								</td>
								<td align="center">
									<s:property value="orderByFenshu" />
									<input type="hidden" value="${orderByFenshu}"
										name="orderByFenshu">
								</td>
								<td align="center">
									<a href="findZhuanJiaByZjId.action?zlid=${zlid}"><s:property
											value="count" /> </a>
									<s:if test="${count1 ne count}">
										<s:set name="allowReviewFlag" value="${allowReviewFlag}+1" />
									</s:if>
								</td>
								<s:if test="${ispass eq 1}">
									<td align="center">
										<font color="red">审核完成</font>
									</td>
								</s:if>
								<s:else>
									<td align="center">
										<font color="blue">未审核</font>
									</td>
								</s:else>

								<s:if test="${my:checkYear()}">
									<s:if test="${ispass eq 1}">
										<td align="left">
											<input class="btn1" type="button" name="query" value="审核已完毕"
												onclick="submitForm()">
										</td>
									</s:if>

									<s:else>
										<s:if test="${count1 eq 0}">
											<td align="left">
												<input class="btn1" type="button" name="query" value="进行审核"
													disable onclick="shenhe()">
											</td>
										</s:if>
										<s:else>
											<td align="left">
												<input class="btn1" type="submit" name="query" value="进行审核">
											</td>
										</s:else>

									</s:else>
								</s:if>
							</tr>
							</form>
						</s:iterator>
					</table>
				</td>
			</tr>
		</table>
		<input type="hidden" id="allowReviewFlagId" value="${allowReviewFlag}" />
	</body>
</html>